package com.summer.framework.base.enums;

import com.summer.framework.base.constant.EnumConstant;
import com.summer.framework.base.constant.EnumType;
import lombok.Getter;

/**
 * Description:
 *
 * @auther Ice Yang
 * Date 2025/9/29 09:58
 */
@Getter
public enum StatusEnum {

    NORMAL("2001", "启用","2000.2001"),
    DISABLE("2002", "禁用","2000.2002"),
    ;

    private final String code;
    private final String message;

    private final String key;

    StatusEnum(String code, String message, String key) {
        this.code = code;
        this.message = message;
        this.key = key;
    }

    static {
        for (StatusEnum value : StatusEnum.values()){
            EnumConstant.put(EnumType.STATUS,value.code,value.message,value.key);
        }
    }
}
